package MouseControl;

import java.awt.event.MouseEvent;
import java.util.Observable;

/**
 * Class MouseControler
 */
public class MouseControler extends Observable implements
		MouseControlerInterface {

	//
	// Fields
	//
	private MouseControlerInterface mouseControl;

	//
	// Constructors
	//
	public MouseControler(MouseControlerInterface mouseContro) {
		mouseControl = mouseContro;
	};

	//
	// Methods
	//

	//
	// Accessor methods
	//

	/**
	 * Set the value of mouseControl
	 *
	 * @param newVar
	 *            the new value of mouseControl
	 */
	private void setMouseControl(MouseControlerInterface newVar) {
		mouseControl = newVar;
	}

	/**
	 * Get the value of mouseControl
	 *
	 * @return the value of mouseControl
	 */
	private MouseControlerInterface getMouseControl() {
		return mouseControl;
	}

	@Override
	public int moveCursor(int x, int y) {
		// TODO Auto-generated method stub
		return mouseControl.moveCursor(x, y);
	}

	@Override
	public int pressLeft() {
		// TODO Auto-generated method stub
		return mouseControl.pressLeft();
	}

	@Override
	public int pressMiddle() {
		// TODO Auto-generated method stub
		return mouseControl.pressMiddle();
	}

	@Override
	public int pressRight() {
		// TODO Auto-generated method stub
		return mouseControl.pressRight();
	}

	@Override
	public int releaseLeft() {
		// TODO Auto-generated method stub
		return mouseControl.releaseLeft();
	}

	@Override
	public int releaseMiddle() {
		// TODO Auto-generated method stub
		return mouseControl.releaseMiddle();
	}

	@Override
	public int releaseRigth() {
		// TODO Auto-generated method stub
		return mouseControl.releaseRigth();
	}

	@Override
	public int getXCursor() {
		// TODO Auto-generated method stub
		return mouseControl.getXCursor();
	}

	@Override
	public int getYCursor() {
		// TODO Auto-generated method stub
		return mouseControl.getYCursor();
	}

	@Override
	public void mouseDragged(MouseEvent arg0) {
		mouseControl.mouseDragged(arg0);
	}

	@Override
	public void mouseMoved(MouseEvent arg0) {
		// TODO Auto-generated method stub
		mouseControl.mouseMoved(arg0);
	}

	@Override
	public int scroll(int scr) {
		// TODO Auto-generated method stub
		mouseControl.scroll(scr);
		return 0;
	}

}
